<div class="body-main">
    <input type="hidden" class="layerIndex" />
    <div class="titleSearch">
        <div class="layui-inline">
            <label>部门：</label>
            <div class="layui-input-inline">
                <input type="text" class="input-style">
            </div>
        </div>
        <div class="layui-inline">
            <label>工号：</label>
            <div class="layui-input-inline">
                <input type="text" class="input-style">
            </div>
        </div>
        <div class="layui-inline">
            <label>姓名：</label>
            <div class="layui-input-inline">
                <input type="text" class="input-style">
            </div>
        </div>
        <div class="layui-inline">
            <button class="layui-btn layui-btn-mini layui-btn-normal">搜索</button>
            <button class="layui-btn layui-btn-mini layui-btn-primary">清空</button>
        </div>
    </div>
    <table id="chooseUserTable" class="cell-border crm-table">
    </table>
</div>
<script>
    $(function () {
        $('#chooseUserTable').dataTableExtend({
            "ajax": "https://www.easy-mock.com/mock/5b601a98e5570610098cc81f/interface/chooseUser.do",
            "oneSelectCheck":true,
//			    	"scrollX":"true",//是否开启横项滚动
//					"fixedColumns":   {//锁定列，只有开启scrollX时才生效
//			            "leftColumns": 2,//左侧锁定2列
//			            "rightColumns": 1//右侧锁定1列
//			        },
            "fnInitComplete": function(settings, json) {
                //datatable加载完后重定位弹窗
                dgg.relocation($('.layerIndex').val())
            },
            "aoColumns": [
                {
                    "sClass": "check-th",
                    "orderable": false,
                    "data": "ID",
                    "render": function (data, type, full, meta) {
                        return '<input type="checkbox"  class="checkchild"  value="' + data + '" />';
                    }
                },
                {
                    "title":"工号",
                    "data": "jobNum",
                    "orderable": false
                },
                {
                    "title":"姓名",
                    "data": "userName",
                    "orderable": false
                },
                {
                    "title":"部门",
                    "data": "orgName",
                    "orderable": false
                }
            ],
        });
    });
    window.onload=function () {
        alert(11)
    }
</script>